home *** CD-ROM | disk | FTP | other *** search
/ Champak 140 / (Vol 140) Sep 19 2011.iso / Games / red_cross_eru.swf / scripts / __Packages / gamebase / Sounds.as < prev    next >
Text File  |  2011-09-19  |  9KB  |  297 lines

  1. §§push(true);
  2. §§push(false);
  3. §§push(false);
  4. §§push(true);
  5. while(true)
  6. {
  7.    if(┬º┬ºpop())
  8.    {
  9.    }
  10.    if(┬º┬ºpop())
  11.    {
  12.    }
  13.    if(┬º┬ºpop())
  14.    {
  15.       break;
  16.    }
  17.    ┬º┬ºpush(true);
  18.    ┬º┬ºpush(false);
  19. }
  20. if(!e.f)
  21. {
  22.    e.f = new g();
  23. }
  24. §§pop();
  25. if(!e.f.h)
  26. {
  27.    f.h extends f[┬º┬ºconstant(6)];
  28.    var _loc2_ = f.h = function()
  29.    {
  30.       super();
  31.       _global[┬º┬ºconstant(4)] = this;
  32.       this[┬º┬ºconstant(5)]();
  33.    }[┬º┬ºconstant(7)];
  34.    _loc2_[┬º┬ºconstant(5)] = function()
  35.    {
  36.       this[┬º┬ºconstant(8)]();
  37.       this[┬º┬ºconstant(9)] = _global[┬º┬ºconstant(10)][┬º┬ºconstant(12)](┬º┬ºconstant(9),_global[┬º┬ºconstant(10)][┬º┬ºconstant(11)]());
  38.       this[┬º┬ºconstant(13)] = this[┬º┬ºconstant(15)](┬º┬ºconstant(14),true);
  39.       this[┬º┬ºconstant(16)] = this[┬º┬ºconstant(15)](┬º┬ºconstant(17),true);
  40.    };
  41.    _loc2_[┬º┬ºconstant(18)] = function()
  42.    {
  43.       this[┬º┬ºconstant(19)] = this[┬º┬ºconstant(21)](┬º┬ºconstant(20));
  44.    };
  45.    _loc2_[┬º┬ºconstant(22)] = function()
  46.    {
  47.       if(this[┬º┬ºconstant(23)](this[┬º┬ºconstant(19)]))
  48.       {
  49.          this[┬º┬ºconstant(24)](this[┬º┬ºconstant(19)],0,2);
  50.       }
  51.       if(this[┬º┬ºconstant(23)](this[┬º┬ºconstant(13)]))
  52.       {
  53.          this[┬º┬ºconstant(24)](this[┬º┬ºconstant(13)],0,2);
  54.       }
  55.    };
  56.    _loc2_[┬º┬ºconstant(23)] = function(uid)
  57.    {
  58.       var _loc2_ = this[uid];
  59.       if(_loc2_ == undefined || !_loc2_[┬º┬ºconstant(25)])
  60.       {
  61.          return false;
  62.       }
  63.       return true;
  64.    };
  65.    _loc2_[┬º┬ºconstant(21)] = function(linkId, vol)
  66.    {
  67.       if(!linkId)
  68.       {
  69.          return undefined;
  70.       }
  71.       if(vol == undefined)
  72.       {
  73.          vol = 100;
  74.       }
  75.       var _loc2_ = f[┬º┬ºconstant(26)][┬º┬ºconstant(27)][┬º┬ºconstant(28)]();
  76.       var _loc3_ = this[┬º┬ºconstant(9)][┬º┬ºconstant(12)](_loc2_,this[┬º┬ºconstant(9)][┬º┬ºconstant(11)]());
  77.       _loc3_[┬º┬ºconstant(29)] = _loc2_;
  78.       this[_loc2_] = new ┬º\┬º\┬ºconstant(30)┬º(_loc3_);
  79.       this[_loc2_][┬º┬ºconstant(31)](linkId);
  80.       this[_loc2_][┬º┬ºconstant(32)](vol);
  81.       this[_loc2_][┬º┬ºconstant(33)]();
  82.       this[_loc2_][┬º┬ºconstant(25)] = true;
  83.       this[_loc2_][┬º┬ºconstant(34)] = f[┬º┬ºconstant(26)][┬º┬ºconstant(36)][┬º┬ºconstant(37)](this,this[┬º┬ºconstant(35)],_loc2_);
  84.       return _loc2_;
  85.    };
  86.    _loc2_[┬º┬ºconstant(38)] = function(uid)
  87.    {
  88.       this[uid][┬º┬ºconstant(39)]();
  89.       delete this[uid];
  90.       this[uid] = undefined;
  91.       this[┬º┬ºconstant(9)][uid][┬º┬ºconstant(40)]();
  92.    };
  93.    _loc2_[┬º┬ºconstant(35)] = function(uid)
  94.    {
  95.       if(uid == this[┬º┬ºconstant(19)])
  96.       {
  97.          this[┬º┬ºconstant(41)](this[┬º┬ºconstant(13)],50);
  98.       }
  99.       this[┬º┬ºconstant(43)][┬º┬ºconstant(44)]({┬º\┬º\┬ºconstant(42)┬º:┬º┬ºconstant(35),┬º\┬º\┬ºconstant(29)┬º:uid});
  100.       this[┬º┬ºconstant(38)](uid);
  101.    };
  102.    _loc2_[┬º┬ºconstant(45)] = function(uid)
  103.    {
  104.       if(!uid)
  105.       {
  106.          return undefined;
  107.       }
  108.       this[uid][┬º┬ºconstant(39)]();
  109.    };
  110.    _loc2_[┬º┬ºconstant(24)] = function(uid, tarVol, fadeSpeed)
  111.    {
  112.       if(fadeSpeed == undefined)
  113.       {
  114.          fadeSpeed = 1;
  115.       }
  116.       var _loc2_ = this[┬º┬ºconstant(9)][uid];
  117.       _loc2_[┬º┬ºconstant(46)] = true;
  118.       _loc2_[┬º┬ºconstant(47)] = fadeSpeed;
  119.       _loc2_[┬º┬ºconstant(48)] = tarVol;
  120.       var _loc3_ = this[uid];
  121.       if(!_loc3_[┬º┬ºconstant(25)])
  122.       {
  123.          if(tarVol == 0)
  124.          {
  125.             return undefined;
  126.          }
  127.          if(_loc3_[┬º┬ºconstant(49)] || _loc3_[┬º┬ºconstant(50)])
  128.          {
  129.             this[┬º┬ºconstant(41)](uid,0);
  130.          }
  131.       }
  132.       if(_loc2_[┬º┬ºconstant(51)] == undefined)
  133.       {
  134.          _loc2_[┬º┬ºconstant(51)] = f[┬º┬ºconstant(26)][┬º┬ºconstant(36)][┬º┬ºconstant(37)](this,this[┬º┬ºconstant(52)],uid);
  135.       }
  136.    };
  137.    _loc2_[┬º┬ºconstant(52)] = function(uid)
  138.    {
  139.       var _loc2_ = this[┬º┬ºconstant(9)][uid];
  140.       var _loc5_ = this[uid];
  141.       var _loc4_ = _loc5_[┬º┬ºconstant(53)]();
  142.       if(_loc2_[┬º┬ºconstant(46)])
  143.       {
  144.          var _loc7_ = _loc4_ <= _loc2_[┬º┬ºconstant(48)] ? _loc2_[┬º┬ºconstant(47)] : - _loc2_[┬º┬ºconstant(47)];
  145.          var _loc3_ = _loc4_ + _loc7_;
  146.          if(eval(┬º┬ºconstant(54))[┬º┬ºconstant(55)](_loc3_ - _loc2_[┬º┬ºconstant(48)]) < _loc2_[┬º┬ºconstant(47)])
  147.          {
  148.             _loc3_ = _loc2_[┬º┬ºconstant(48)];
  149.          }
  150.          _loc5_[┬º┬ºconstant(32)](_loc3_);
  151.          if(_loc3_ == _loc2_[┬º┬ºconstant(48)])
  152.          {
  153.             _loc2_[┬º┬ºconstant(46)] = false;
  154.             if(uid == this[┬º┬ºconstant(19)])
  155.             {
  156.                this[┬º┬ºconstant(38)](uid);
  157.             }
  158.          }
  159.       }
  160.       if(!_loc2_[┬º┬ºconstant(46)])
  161.       {
  162.          delete _loc2_[┬º┬ºconstant(51)];
  163.       }
  164.    };
  165.    _loc2_[┬º┬ºconstant(32)] = function(uid, vol)
  166.    {
  167.    };
  168.    _loc2_[┬º┬ºconstant(15)] = function(soundId, isAmbience)
  169.    {
  170.       var _loc2_ = f[┬º┬ºconstant(26)][┬º┬ºconstant(27)][┬º┬ºconstant(28)]();
  171.       var _loc3_ = this[┬º┬ºconstant(9)][┬º┬ºconstant(12)](_loc2_,this[┬º┬ºconstant(9)][┬º┬ºconstant(11)]());
  172.       this[_loc2_] = new ┬º\┬º\┬ºconstant(30)┬º(_loc3_);
  173.       this[_loc2_][┬º┬ºconstant(56)] = soundId;
  174.       this[_loc2_][┬º┬ºconstant(29)] = _loc2_;
  175.       if(isAmbience)
  176.       {
  177.          this[_loc2_][┬º┬ºconstant(50)] = true;
  178.       }
  179.       else
  180.       {
  181.          this[_loc2_][┬º┬ºconstant(49)] = true;
  182.       }
  183.       this[_loc2_][┬º┬ºconstant(25)] = false;
  184.       this[_loc2_][┬º┬ºconstant(31)](soundId);
  185.       this[_loc2_][┬º┬ºconstant(32)](0);
  186.       return _loc2_;
  187.    };
  188.    _loc2_[┬º┬ºconstant(41)] = function(uid, vol)
  189.    {
  190.       this[uid][┬º┬ºconstant(39)]();
  191.       if(vol == undefined)
  192.       {
  193.          vol = 100;
  194.       }
  195.       this[uid][┬º┬ºconstant(32)](vol);
  196.       this[uid][┬º┬ºconstant(33)](0,100000);
  197.       this[uid][┬º┬ºconstant(25)] = true;
  198.    };
  199.    _loc2_[┬º┬ºconstant(57)] = function(uid)
  200.    {
  201.       this[uid][┬º┬ºconstant(39)]();
  202.    };
  203.    _loc2_[┬º┬ºconstant(58)] = function()
  204.    {
  205.       for(var _loc3_ in this)
  206.       {
  207.          var _loc2_ = this[_loc3_];
  208.          if(_loc2_ instanceof eval(┬º┬ºconstant(30)))
  209.          {
  210.             this[_loc3_][┬º┬ºconstant(39)]();
  211.          }
  212.       }
  213.    };
  214.    _loc2_[┬º┬ºconstant(59)] = function()
  215.    {
  216.       for(var _loc3_ in this)
  217.       {
  218.          var _loc2_ = this[_loc3_];
  219.          if(_loc2_ instanceof eval(┬º┬ºconstant(30)))
  220.          {
  221.             if(_loc2_[┬º┬ºconstant(49)])
  222.             {
  223.                this[┬º┬ºconstant(24)](_loc2_[┬º┬ºconstant(29)],0,10);
  224.             }
  225.          }
  226.       }
  227.    };
  228.    _loc2_[┬º┬ºconstant(8)] = function()
  229.    {
  230.       this[┬º┬ºconstant(9)][┬º┬ºconstant(40)]();
  231.       for(var _loc2_ in this)
  232.       {
  233.          if(this[_loc2_] instanceof eval(┬º┬ºconstant(30)))
  234.          {
  235.             delete this[_loc2_];
  236.          }
  237.       }
  238.       for(_loc2_ in this)
  239.       {
  240.          if(this[_loc2_] instanceof g)
  241.          {
  242.             delete this[_loc2_];
  243.          }
  244.       }
  245.    };
  246.    _loc2_[┬º┬ºconstant(60)] = function(mc)
  247.    {
  248.       this[mc[┬º┬ºconstant(61)]][┬º┬ºconstant(39)]();
  249.       delete this[mc[┬º┬ºconstant(61)]];
  250.       mc[┬º┬ºconstant(40)]();
  251.    };
  252.    _loc2_[┬º┬ºconstant(62)] = function()
  253.    {
  254.       if(_global[┬º┬ºconstant(63)][┬º┬ºconstant(64)] == 0)
  255.       {
  256.          return undefined;
  257.       }
  258.       var _loc4_ = _global[┬º┬ºconstant(65)][┬º┬ºconstant(66)]();
  259.       var _loc5_ = _global[┬º┬ºconstant(67)][┬º┬ºconstant(68)]();
  260.       var _loc3_ = _loc4_;
  261.       if(_loc3_ > 2)
  262.       {
  263.          this[┬º┬ºconstant(24)](this[┬º┬ºconstant(13)],0,1);
  264.          this[┬º┬ºconstant(24)](this[┬º┬ºconstant(16)],60,1);
  265.       }
  266.       else if(_loc3_ > 1)
  267.       {
  268.          this[┬º┬ºconstant(24)](this[┬º┬ºconstant(13)],0,1);
  269.          this[┬º┬ºconstant(24)](this[┬º┬ºconstant(16)],40,1);
  270.       }
  271.       else if(_loc3_ > 0)
  272.       {
  273.          this[┬º┬ºconstant(24)](this[┬º┬ºconstant(13)],0,1);
  274.          this[┬º┬ºconstant(24)](this[┬º┬ºconstant(16)],20,1);
  275.       }
  276.       else
  277.       {
  278.          this[┬º┬ºconstant(24)](this[┬º┬ºconstant(13)],50,1);
  279.          this[┬º┬ºconstant(24)](this[┬º┬ºconstant(16)],0,1);
  280.       }
  281.    };
  282.    _loc2_[┬º┬ºconstant(69)] = function()
  283.    {
  284.       this[┬º┬ºconstant(59)]();
  285.       if(this[this[┬º┬ºconstant(13)]][┬º┬ºconstant(53)]() > 10)
  286.       {
  287.          this[┬º┬ºconstant(24)](this[┬º┬ºconstant(13)],10,2);
  288.       }
  289.       if(this[this[┬º┬ºconstant(16)]][┬º┬ºconstant(53)]() > 10)
  290.       {
  291.          this[┬º┬ºconstant(24)](this[┬º┬ºconstant(16)],10,2);
  292.       }
  293.    };
  294.    ┬º┬ºpush(┬º┬ºconstant(70)(f.h[┬º┬ºconstant(7)],null,1));
  295. }
  296. §§pop();
  297.